export default class mapTools {
	tools = [
		{
			key: "baseMap",
			label: "底图",
			icon: "icon-dituqiehuan_0",
			children: [
				{
					key: "tiandituVecLayer",
					label: "天地图矢量",
				},
				{
					key: "tiandituImgLayer",
					label: "天地图影像",
				},
				{
					key: "tiandituCesuimLayer",
					label: "cesuim影像",
				},
			],
		},
		{
			key: "location",
			label: "坐标拾取",
			icon: "icon-dingwei",
		},
		{
			key: "paint",
			label: "绘图",
			icon: "icon-huituguanlixinxi",
			children: [
				{
					key: "LineString",
					label: "线",
				},
				{
					key: "Polygon",
					label: "多边形",
				},
				{
					key: "Rectangle",
					label: "矩形",
				},
				{
					key: "Circle",
					label: "圆",
				},
			],
		},
		{
			key: "clear",
			label: "清除",
			icon: "icon-qingchu",
		},
		{
			key: "screenShot",
			label: "截图",
			icon: "icon-jietu_huaban",
		},
	];
	constructor() {
		const dom = document.getElementsByClassName("mapTools")[0];
		console.log("dom", dom);
		console.log("this.options", this.tools);
		// this.tools.forEach((item) => {
		// 	let child = document.createElement("div");
		// 	child.value = item.key;
		// 	child.innerHTML = item.label;
		// 	child.className = "item";

		// 	// child.addEventListener("click", function (e) {
		// 	// 	// handlerChange(a);
		// 	// });

		// 	dom.appendChild(child);
		// });
	}
}
